Fix leak in ostree_repo_list_collection_refs
authorAlexander Larsson <alexl@redhat.com>
Mon, 13 Aug 2018 15:44:27 +0000 (17:44 +0200)
committerAtomic Bot <atomic-devel@projectatomic.io>
Mon, 13 Aug 2018 16:29:59 +0000 (16:29 +0000)
commit016cae15732e8a6e0d6211c7f790b24e55f1f7cb
treed22b7342ac80b77347621a603a3e949a9f83707b
parent521e0ec3ac87b539190f3a6cc310237fbaf39517
Fix leak in ostree_repo_list_collection_refs

We need to have the g_auto(GLnxDirFdIterator) inside the loop, or
we don't correctly clean up when iterating several times.

Closes: #1700
Approved by: cgwalters
src/libostree/ostree-repo-refs.c